package com.player.thirdGroup.dao;

import com.player.thirdGroup.entity.RoleUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import javax.transaction.Transactional;

public interface RoleUserDao extends JpaRepository<RoleUser,String> {
    @Query(value = "insert into sys_role_user values (?1,?2)",nativeQuery = true)
    @Transactional
    @Modifying
    void InsertRoleUser(String userid,String roleid);
}
